﻿//*************************************************************************
//面向服务的协作式智能交通系统仿真软件SoC-ITSS v2.1 alpha
//发布单位：西北工业大学--巴黎高科MINES机器人与群智能系统联合实验室
//团队负责人：张凯龙 Zhang Kailong
//团队成员：张大方、杨安胜、王敏、谢策、王雨佳、谢尘玉等
//联系我们：kl.zhang@nwpu.edu.cn
//2012-2021
//*************************************************************************


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

//*******************************************************
//
//文件名(File Name):           C2VMessage.cs
//
//数据表(Tables):              nothing 
//          修改理由：         增加属性、方法
//
//*******************************************************
namespace CyberCarSimulation.Bean
{
    class C2VMessage
    {
        private string Sender;              //信息发送方
        private string Receiver;            //信息接收方 id
        private int Type;                   //信息类型，由消息的类别标识
        private string[,] PathRoute;                //规划好的路径

        //无参构造函数
        public C2VMessage() {
        }

        //有参构造函数
        public C2VMessage(string Sender, string Receiver, int Type, string[,] PathRoute)
        {
            this.Type = Type;                           //信息类型，由消息的类别标识
            this.Sender = Sender;                       //信息发送方
            this.Receiver = Receiver;                   //信息接收方 id
            this.PathRoute = PathRoute;                           //规划好的路径
        }
        

        public int GetType()
        {
            return this.Type;
        }

        public void SetType(int Type)
        {
            this.Type = Type;
        }

        public string GetSender()
        {
            return this.Sender;
        }

        public void SetSender(string Sender)
        {
            this.Sender = Sender;
        }

        public string GetReceiver()
        {
            return this.Receiver;
        }

        public void SetReceiver(string Receiver)
        {
            this.Receiver = Receiver;
        }

        public string[,] GetPathRoute() 
        {
            return this.PathRoute;
        }

        public void SetPathRoute(string[,] PathRoute)
        {
            this.PathRoute = PathRoute;
        }

    }    

}
